package com.cq.school.repository;

import com.cq.school.entity.Specialty;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User:oa3158
 * Date: 14-1-10
 * Time: 上午9:38
 * To change this template use File | Settings | File Templates.
 */
public interface SpecialtyDao extends CrudRepository<Specialty, Long>, JpaSpecificationExecutor<Specialty> {
    List<Specialty> findBySchoolId(long schooolId);
}
